#ifndef MAINPAGE_H
#define MAINPAGE_H

#include <QWidget>
#include <QTimer>

namespace Ui {
class MainPage;
}

class MainPage : public QWidget
{
    Q_OBJECT

public:
    explicit MainPage(QWidget *parent = nullptr);
    ~MainPage();

private slots:
    void on_btnShowAll_clicked();

    void on_btnShowCar_clicked();

    void on_btnShowFlow_clicked();

    void on_btnShowRound_clicked();

    void on_btnShowCarControl_clicked();

    void on_btnShowConfig_clicked();

    void on_btnShowInfo_clicked();

    void on_btnCarStart_clicked();

    void sendTimerTimeoutSlot();

    void newCarPosSlot(int carId, int roundId, int roundPos);

    void on_btnAlarmOpen_clicked();

    void on_btnAlarmClose_clicked();

    void on_btnLightOpen_clicked();

    void on_btnLightClose_clicked();

    void on_btnAlarmLightOpen_clicked();

    void on_btnAlarmLightClose_clicked();

    void on_btnCarStop_clicked();

    void on_btnAlarmOpen_2_clicked();

    void on_btnAlarmClose_2_clicked();

    void on_btnLightOpen_2_clicked();

    void on_btnLightClose_2_clicked();

    void on_btnAlarmLightOpen_2_clicked();

    void on_btnAlarmLightClose_2_clicked();

    void on_btnCarStart_2_clicked();

    void on_btnCarStop_2_clicked();

    void newLampColorSlot(int junctionId, int lampId,int color);

    void on_btnJunNor_clicked();

    void on_btnJunStop_clicked();

    void on_btnJunNight_clicked();

    void on_btnJunHor_clicked();

    void on_btnJunVor_clicked();

    void getcarmilageSlot();
    void getcarmilageSlot2();

    void getcarbatterySlot();
    void getcarbatterySlot2();



private:
    Ui::MainPage *ui;
    QTimer *sendTimer;
    QTimer *timer;
    QTimer *timer2;
    QTimer *timer3;
    QTimer *timer4;
    int a = 0 , b = 0, c = 0;

};

#endif // MAINPAGE_H
